#ifndef _LED_H
#define _LED_H

#ifdef __cplusplus
 extern "C" {
#endif 

/* Includes ------------------------------------------------------------------*/
#include "stm32f10x.h"
#include "main.h"

#define LEDn                             2

#define LED0_PIN                GPIO_Pin_0
#define LED0_PORT            GPIOB
#define LED0_CLK               RCC_APB2Periph_GPIOB  
  
#define LED1_PIN               GPIO_Pin_1
#define LED1_PORT            GPIOB
#define LED1_CLK               RCC_APB2Periph_GPIOB  

typedef enum 
{
	LED0 = 0,
	LED1 = 1
} Led_TypeDef;

void LedInitController(void);
void LedOn(Led_TypeDef Led);
void LedOff(Led_TypeDef Led);
void LedToggle(Led_TypeDef Led);

#endif

